#ifndef FOOD_H
#define FOOD_H
#include<QString>
#include<QDebug>
class Food
{
public:
    Food();
    long create_user;
    long create_id;
    QString name;
    short type;
    QString typeName;
    QString typePic;
    int shelf_time;
    short unit;
    QString unitName;
    QString info;
    QString alias;
    QString pic;

    friend QDebug operator << (QDebug os, Food food){
            os << "(" << food.create_user << ", "
                  << food.create_id << ", "
                     << food.name << ", "
                        << food.type << ", "
                           << food.shelf_time << ", "
                              << food.unit << ", "
                                 << food.info << ", "
                                    << food.alias << ", "
                                        << food.pic << ")";
            return os;
        }
};

#endif // FOOD_H
